
<%@ include file="../common.jsp" %>


	<script type="text/javascript">
		$(document).ready(function(){
			bindEventsForDocAttrDtlsPage();
			var docType = '<c:out value="${docDetailsForm.docTypeId}"></c:out>';
			if(docType!=0){
				loadDocCategory();
			}
		});
	</script>
	
	<tr>
		<td class="spacingColumnWidthLess"></td>
		<td class="formLabel"><label>Name</label></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formField">
			<form:input path="docName"  ></form:input>
		</td>
		<td class="spacingColumnWidthMedium"></td>
		<td class="formLabel"><label>Type</label></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formField">
			 <form:select path="docTypeId" id="docTypeID"  >
				<form:option value="0">Choose Type</form:option>
					<c:forEach items="${docTypeMap}" var="item">
						<form:option value="${item.key}">${item.value}</form:option>
					</c:forEach>
			</form:select> 
		</td>
		<td class="spacingColumnWidthLess"></td>
	</tr>
	<tr>
		<td class="spacingColumnWidthLess"></td>
		<td class="formLabel"></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formError">
			<form:errors path="docName" cssClass="errorMsg"></form:errors>
		</td>
		<td class="spacingColumnWidthMedium"></td>
		<td class="formLabel"></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formError">
			 <form:errors path="docTypeId" cssClass="text errorMsg"></form:errors> 
		</td>
		<td class="spacingColumnWidthLess"></td>
	</tr>
	<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
	<tr>
		<td class="spacingColumnWidthLess" rowspan="4"></td>
		<td class="formLabel" rowspan="4">
			<label>Description</label>
		</td>
		<td class="spacingColumnWidthLess" rowspan="4"></td>
		<td class="formField" rowspan="4">
			<form:textarea path="docDesc" cols="30" rows="3"  ></form:textarea>
		</td>
		<td class="spacingColumnWidthMedium" rowspan="4"></td>
		<td class="formLabel"><label>Category</label> </td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formField">
			<form:select path="docCategoryId" id="docCatID"  ></form:select> 
		</td>
		<td class="spacingColumnWidthLess"></td>
	</tr>
	<tr>
		<!-- <td class="spacingColumnWidthLess" ></td>
		<td class="formLabel"></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formError">
		</td>
		<td class="spacingColumnWidthMedium"></td> -->
		<td class="formLabel"></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formError">
			 <form:errors path="docCategoryId" cssClass="errorMsg"></form:errors> 
		</td>
		<td class="spacingColumnWidthLess"></td>
	</tr>
	<tr class="formSpacingRow formBlockColor"><td colspan="4"></td></tr>
	<tr>
		<td class="formLabel"><label>Sub-Category</label> </td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formField">
			<form:select path="docSubCategoryId" id="docSubCatID" />
		</td>
		<td class="spacingColumnWidthLess"></td>
	</tr>
	<tr>
		<td class="spacingColumnWidthLess"></td>
		<td class="formLabel"></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formError">
			<form:errors path="docDesc" cssClass="errorMsg"></form:errors>
		</td>
		<td class="spacingColumnWidthMedium"></td>
		<td class="formLabel"></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formError">
			 <form:errors path="docSubCategoryId" cssClass="errorMsg"></form:errors>
		</td>
		<td class="spacingColumnWidthLess"></td>
	</tr>
	<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
	<tr>
		<td class="spacingColumnWidthLess"></td>
		<td class="formLabel"><label>Issuing Authority</label></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formField">
			<form:textarea path="docIssuingAuthority" cols="30" rows="3"  ></form:textarea>
		</td>
		<td class="spacingColumnWidthMedium"></td>
		<td class="formLabel"><label>Agreement Entered With</label></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formField">
			 <form:textarea path="docEnteredWith" cols="30" rows="3"  /> 
		</td>
		<td class="spacingColumnWidthLess"></td>
	</tr>
	<tr>
		<td class="spacingColumnWidthLess"></td>
		<td class="formLabel"></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formError">
			<form:errors path="docIssuingAuthority" cssClass="errorMsg"></form:errors>
		</td>
		<td class="spacingColumnWidthMedium"></td>
		<td class="formLabel"></td>
		<td class="spacingColumnWidthLess"></td>
		<td class="formError">
			 <form:errors path="docEnteredWith" cssClass="text errorMsg"></form:errors> 
		</td>
		<td class="spacingColumnWidthLess"></td>
	</tr>
	<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
